﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CoreData;
using ActionServices;
using Helper;

namespace MMO50K.Controllers
{
    public class AuthurizationController : BaseController
    {
        //
        // GET: /Authurization/

        public AuthurizationController(IusersActionService user, Iuser_groupActionService usergroup
            , IuserinfoActionService userinfo)
            : base(user, usergroup, userinfo) { }


        /// <summary>
        /// Register View
        /// </summary>
        /// <returns></returns>
        public ActionResult Register()
        {
            if (SessionManagement.GetSessionReturnToString("Username") != null)
                return RedirectToAction("Index", "Home");
            return View();
        }

        /// <summary>
        /// Login View
        /// </summary>
        /// <returns></returns>
        public ActionResult Login()
        {
            if (SessionManagement.GetSessionReturnToString("Username") == null)
                return View();
            return RedirectToAction("Index", "Home");
        }
        public ActionResult Index()
        {
            return View();
        }

    }
}

